
// Boost Includes ==============================================================
#include <boost/python.hpp>
#include <boost/cstdint.hpp>

// Includes ====================================================================
#include <OpenSG/OSGMaterialDrawable.h>
#include <OpenSG/OSGMaterialDrawableBase.h>
#include <OsgPtrHelpers.h>

// Using =======================================================================
using namespace boost::python;

// Declarations ================================================================
namespace  {

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_MaterialDrawable_dump_overloads_0_2, dump, 0, 2)


}// namespace


// Module ======================================================================
void Export_src_pyste_gen_MaterialDrawable()
{
    scope* osg_MaterialDrawableBase_scope = new scope(
    class_< osg::MaterialDrawableBase, bases< osg::Drawable > , boost::noncopyable >("MaterialDrawableBase", no_init)
//        .def_readonly("MaterialFieldMask", &osg::MaterialDrawableBase::MaterialFieldMask)
//        .def_readonly("MTInfluenceMask", &osg::MaterialDrawableBase::MTInfluenceMask)
        .def("getClassType", &osg::MaterialDrawableBase::getClassType, return_internal_reference< 1 >())
        .def("getClassTypeId", &osg::MaterialDrawableBase::getClassTypeId)
        .def("getType", (osg::FieldContainerType& (osg::MaterialDrawableBase::*)() )&osg::MaterialDrawableBase::getType, return_internal_reference< 1 >())
        .def("getType", (const osg::FieldContainerType& (osg::MaterialDrawableBase::*)() const)&osg::MaterialDrawableBase::getType, return_internal_reference< 1 >())
        .def("getContainerSize", &osg::MaterialDrawableBase::getContainerSize)
        //.def("getMaterial", (osg::MaterialPtr& (osg::MaterialDrawableBase::*)() )&osg::MaterialDrawableBase::getMaterial, return_value_policy< copy_const_reference >())
        .def("getMaterial", (const osg::MaterialPtr& (osg::MaterialDrawableBase::*)() const)&osg::MaterialDrawableBase::getMaterial, return_value_policy< copy_const_reference >())
        .def("setMaterial", &osg::MaterialDrawableBase::setMaterial)
        .def("getBinSize", &osg::MaterialDrawableBase::getBinSize)
        .def("copyToBin", &osg::MaterialDrawableBase::copyToBin)
        .def("copyFromBin", &osg::MaterialDrawableBase::copyFromBin)
        .staticmethod("getClassType")
        .staticmethod("getClassTypeId")
    );

    scope().attr("NextFieldId") = (int)osg::MaterialDrawableBase::NextFieldId;
    scope().attr("MaterialFieldId") = (int)osg::MaterialDrawableBase::MaterialFieldId;

    delete osg_MaterialDrawableBase_scope;

    class_< osg::MaterialDrawable, bases< osg::MaterialDrawableBase > , boost::noncopyable, osg::MaterialDrawableRefPtr >("MaterialDrawable", no_init)
        .def("drawPrimitives", &osg::MaterialDrawable::drawPrimitives)
        .def("drawActionHandler", &osg::MaterialDrawable::drawActionHandler)
        .def("renderActionHandler", &osg::MaterialDrawable::renderActionHandler)
        .def("changed", &osg::MaterialDrawable::changed)
        .def("dump", &osg::MaterialDrawable::dump, osg_MaterialDrawable_dump_overloads_0_2())
        .def("setMaterial", &osg::MaterialDrawable::setMaterial)
    ;


    register_ptr_to_python<osg::MaterialDrawablePtr>();
    implicitly_convertible<osg::MaterialDrawableRefPtr, osg::MaterialDrawablePtr>();
    implicitly_convertible<osg::MaterialDrawablePtr, osg::DrawablePtr>();

    def("RefPtr", &pyopensg::ToRefPtr<osg::MaterialDrawablePtr>);
    def("FCPtr", &pyopensg::ToFcPtr<osg::MaterialDrawablePtr>);
}

